import requests

# 定义接口地址
url = 'http://127.0.0.1:8000/register/'

# 定义参数
data = {'username': 'test', 'password': '123'}

# 发起请求
res = requests.get(url, params=data)

print(res.text)
